﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


/// <summary>
/// 雪球
/// </summary>
namespace Stock.Model
{
      public class StockInfo_Xueqiu 
      {
            public List<Xueqiu_Stock> data { get; set; }
            public int error_code { get; set; }
            public string error_description { get; set; }
      }


      public class Xueqiu_Stock
      {
            public string symbol { get; set; }
            public decimal current { get; set; }
            public decimal percent { get; set; }

            /// <summary>
            /// 涨跌值
            /// </summary>
            public decimal chg { get; set; }
            public long timestamp { get; set; }
            public decimal volume { get; set; }
            public decimal amount { get; set; }
            public decimal market_capital { get; set; }
            public decimal decimal_market_capital { get; set; }
            public decimal turnover_rate { get; set; }
            public decimal amplitude { get; set; }
            public decimal open { get; set; }
            public decimal last_close { get; set; }
            public decimal high { get; set; }
            public decimal low { get; set; }
            public decimal avg_price { get; set; }
            public string trade_volume { get; set; }
            public string side { get; set; }
            public bool is_trade { get; set; }
            public int level { get; set; }
            public string trade_session { get; set; }
            public string trade_type { get; set; }
            public decimal current_year_percent { get; set; }
            public string trade_unique_id { get; set; }
            public int type { get; set; }
            public string bid_appl_seq_num { get; set; }
            public string offer_appl_seq_num { get; set; }
            public string volume_ext { get; set; }
            public string traded_amount_ext { get; set; }
      }

}

// https://stock.xueqiu.com/v5/stock/realtime/quotec.json?symbol=SH601003,SH601001

//{
//      "data": [
//          {
//            "symbol": "SH600183",//代码
//            "current": 22.36,//当前价格
//            "percent": 2.57,//涨幅 %
//            "chg": 0.56,//涨跌
//            "timestamp": 1634610522560,
//            "volume": 24343828,//成交量 
//            "amount": 5.4790437E8,//成交量  亿
//            "market_capital": 5.1650421114E10,//市值
//            "decimal_market_capital": 5.1650421114E10,
//            "turnover_rate": 1.05,//换手率
//            "amplitude": 2.29,//
//            "open": 22.6,//开盘价
//            "last_close": 21.8,//昨收盘价
//            "high": 22.81,//最高价
//            "low": 22.31,//最低价
//            "avg_price": 22.507,//均价
//            "trade_volume": 1200,//当前成交量
//            "side": -1,//
//            "is_trade": true,//
//            "level": 1,//
//            "trade_session": null,//
//            "trade_type": null,//
//            "current_year_percent": -19.22,//今年以来涨跌幅 %
//            "trade_unique_id": "24343828",//
//            "type": 11,//
//            "bid_appl_seq_num": null,//
//            "offer_appl_seq_num": null,//
//            "volume_ext": null,//
//            "traded_amount_ext": null//
//          }
//    ],
//    "error_code": 0,
//    "error_description": null
//}


